dojo.declare("DVendorDetailsPg", wm.Page, {
start: function() {
this.lookup1.setShowing(false);
this.lookup2.setShowing(false);
},
"preferredDevice": "desktop",
lvProjectsSuccess: function(inSender, inDeprecated) {
var item = this.lookupProject.dataSet.getItem(0);
this.lookupProject.setDataValue(item);
},
customerSaveButtonClick: function(inSender) {
var shopTime1="";
var shopTime2="";
var openHr = this.optionTimeHour.dataValue;
var openMin = this.optionTimeMin.dataValue;
var openAmPm = this.option.dataValue;
var openTime = true;
var closeHr = this.optionTimeHour1.dataValue;
var closeMin = this.optionTimeMin1.dataValue;
var closeAmPm = this.option1.dataValue;
var closeTime = true;
var timeflag = false;
if (openHr || openMin || openAmPm) {
timeflag = true;
if (!openHr || !openMin || !openAmPm) {
openTime = false;
} else {
shopTime1 = openHr + ":" + openMin + " " + openAmPm;
}
closeTime = false;
}
if (closeHr || closeMin || closeAmPm) {
if (!closeHr || !closeMin || !closeAmPm) {
closeTime = false;
} else {
closeTime = true;
shopTime1 = shopTime1 + "," + closeHr + ":" + closeMin + " " + closeAmPm;
}
if (!timeflag) {
openTime = false;
}
}
var openHr1 = this.optionTimeHour2.dataValue;
var openMin1 = this.optionTimeMin2.dataValue;
var openAmPm1 = this.option2.dataValue;
var openTime1 = true;
var closeHr1 = this.optionTimeHour3.dataValue;
var closeMin1 = this.optionTimeMin3.dataValue;
var closeAmPm1 = this.option3.dataValue;
var closeTime1 = true;
var timeflag1 = false;
if (openHr1 || openMin1 || openAmPm1) {
timeflag1 = true;
if (!openHr1 || !openMin1 || !openAmPm1) {
openTime1 = false;
} else {
shopTime2 = openHr1 + ":" + openMin1 + " " + openAmPm1;
}
closeTime1 = false;
}
if (closeHr1 || closeMin1 || closeAmPm1) {
if (!closeHr1 || !closeMin1 || !closeAmPm1) {
closeTime1 = false;
} else {
closeTime1 = true;
shopTime2 = shopTime2 + "," + closeHr1 + ":" + closeMin1 + " " + closeAmPm1;
}
if (!timeflag1) {
openTime1 = false;
}
}
if ((openTime && closeTime) && (openTime1 && closeTime1)) {
if (timeflag && timeflag1) {
shopTime1 = shopTime1 + ";" + shopTime2;
} else if (timeflag1) {
shopTime1 = shopTime2;
}
// alert(shopTime1);
this.shopTimeTxt.setDataValue(shopTime1);
this.updatedDtEditor1.clear();
this.updatedDtEditor1.setDataValue(new Date());
this.customerLiveForm1.saveDataIfValid();
}
else {
// app.toastWarning("Please Enter Valid Timing", 4000);
this.ncShopTime.update();
}
},
customerUpdateButtonClick: function(inSender) {
this.optionTimeHour.setDataValue("");
this.optionTimeMin.setDataValue("");
this.option.setDataValue("");
this.optionTimeHour1.setDataValue("");
this.optionTimeMin1.setDataValue("");
this.option1.setDataValue("");
this.optionTimeHour2.setDataValue("");
this.optionTimeMin2.setDataValue("");
this.option2.setDataValue("");
this.optionTimeHour3.setDataValue("");
this.optionTimeMin3.setDataValue("");
this.option3.setDataValue("");
this.shopTimeTxt.setDataValue("");
},
_end: 0
});

DVendorDetailsPg.widgets = {
lvProjects: ["wm.LiveVariable", {"autoUpdate":false,"inFlightBehavior":"executeLast","orderBy":"asc:projectName","type":"com.servicelivedb.data.Project"}, {"onSuccess":"lvProjectsSuccess"}, {
liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.Project","view":[
{"caption":"ProjectId","sortable":true,"dataIndex":"projectId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},
{"caption":"ProjectName","sortable":true,"dataIndex":"projectName","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null},
{"caption":"Address","sortable":true,"dataIndex":"address","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":2,"subType":null},
{"caption":"Active","sortable":true,"dataIndex":"active","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3,"subType":null},
{"caption":"PrimaryPhone","sortable":true,"dataIndex":"primaryPhone","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":4,"subType":null},
{"caption":"SecondaryPhone","sortable":true,"dataIndex":"secondaryPhone","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":5,"subType":null},
{"caption":"Email","sortable":true,"dataIndex":"email","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":6,"subType":null},
{"caption":"Website","sortable":true,"dataIndex":"website","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":7,"subType":null},
{"caption":"Description","sortable":true,"dataIndex":"description","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":8,"subType":null},
{"caption":"Image","sortable":true,"dataIndex":"image","type":"byte","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":9,"subType":null}
]}, {}]
}],
lvCustomerLiveVar: ["wm.LiveVariable", {"autoUpdate":false,"orderBy":"asc:name","startUpdate":false,"type":"com.servicelivedb.data.Customer"}, {}, {
liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.Customer","related":["project","block","door"],"view":[
{"caption":"CustomerId","sortable":true,"dataIndex":"customerId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},
{"caption":"DoorId","sortable":true,"dataIndex":"door.doorId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},
{"caption":"BlockId","sortable":true,"dataIndex":"block.blockId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},
{"caption":"ProjectId","sortable":true,"dataIndex":"project.projectId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},
{"caption":"Address","sortable":true,"dataIndex":"address","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null},
{"caption":"BlockName","sortable":true,"dataIndex":"block.blockName","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null},
{"caption":"ProjectName","sortable":true,"dataIndex":"project.projectName","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null},
{"caption":"DoorName","sortable":true,"dataIndex":"door.doorName","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null},
{"caption":"Address","sortable":true,"dataIndex":"project.address","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":2,"subType":null},
{"caption":"Email","sortable":true,"dataIndex":"email","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":2,"subType":null},
{"caption":"Active","sortable":true,"dataIndex":"project.active","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3,"subType":null},
{"caption":"UpdatedDt","sortable":true,"dataIndex":"updatedDt","type":"java.util.Date","displayType":"Date","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3,"subType":null},
{"caption":"UpdatedBy","sortable":true,"dataIndex":"updatedBy","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":4,"subType":null},
{"caption":"PrimaryPhone","sortable":true,"dataIndex":"project.primaryPhone","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":4,"subType":null},
{"caption":"SecondaryPhone","sortable":true,"dataIndex":"project.secondaryPhone","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":5,"subType":null},
{"caption":"Active","sortable":true,"dataIndex":"active","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":5,"subType":null},
{"caption":"Password","sortable":true,"dataIndex":"password","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":6,"subType":null},
{"caption":"Email","sortable":true,"dataIndex":"project.email","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":6,"subType":null},
{"caption":"Username","sortable":true,"dataIndex":"username","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":7,"subType":null},
{"caption":"Website","sortable":true,"dataIndex":"project.website","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":7,"subType":null},
{"caption":"Description","sortable":true,"dataIndex":"project.description","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":8,"subType":null},
{"caption":"Name","sortable":true,"dataIndex":"name","type":"java.lang.String","displayType":"Text","required":true,"readonly":false,"includeLists":true,"includeForms":true,"order":8,"subType":null},
{"caption":"Block","sortable":true,"dataIndex":"block","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":9,"subType":null},
{"caption":"Image","sortable":true,"dataIndex":"project.image","type":"byte","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":9,"subType":null},
{"caption":"Door","sortable":true,"dataIndex":"door","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":10,"subType":null},
{"caption":"PrimaryPhone","sortable":true,"dataIndex":"primaryPhone","type":"java.lang.String","displayType":"Text","required":true,"readonly":false,"includeLists":true,"includeForms":true,"order":11,"subType":null},
{"caption":"SecondaryPhone","sortable":true,"dataIndex":"secondaryPhone","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":12,"subType":null},
{"caption":"Pto","sortable":true,"dataIndex":"pto","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":13,"subType":null},
{"caption":"Type","sortable":true,"dataIndex":"type","type":"java.lang.String","displayType":"Text","required":true,"readonly":false,"includeLists":true,"includeForms":true,"order":13,"subType":null},
{"caption":"AlternateContact","sortable":true,"dataIndex":"alternateContact","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":14,"subType":null},
{"caption":"PtoMessage","sortable":true,"dataIndex":"ptoMessage","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":14,"subType":null},
{"caption":"Vendor_msg","sortable":true,"dataIndex":"vendor_msg","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":15,"subType":null},
{"caption":"Min_order_amount","sortable":true,"dataIndex":"min_order_amount","type":"java.lang.Integer","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":16,"subType":null},
{"caption":"Shop_time","sortable":true,"dataIndex":"shop_time","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":17,"subType":null}
]}, {}],
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":"\"VENDOR\"","targetProperty":"filter.type"}, {}],
wire1: ["wm.Wire", {"expression":undefined,"source":"lookupProject.selectedItem.projectId","targetProperty":"filter.project.projectId"}, {}]
}]
}],
lvBlocks: ["wm.LiveVariable", {"autoUpdate":false,"inFlightBehavior":"executeLast","orderBy":"asc:blockName","startUpdate":false,"type":"com.servicelivedb.data.Block"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"lookupProject.selectedItem","targetProperty":"filter.project"}, {}]
}],
liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.Block","view":[
{"caption":"BlockId","sortable":true,"dataIndex":"blockId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},
{"caption":"BlockName","sortable":true,"dataIndex":"blockName","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null}
]}, {}]
}],
lvDoors: ["wm.LiveVariable", {"autoUpdate":false,"inFlightBehavior":"executeLast","orderBy":"asc:doorName","startUpdate":false,"type":"com.servicelivedb.data.Door"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"lookup1.selectedItem","targetProperty":"filter.block"}, {}]
}],
liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.Door","view":[
{"caption":"DoorId","sortable":true,"dataIndex":"doorId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},
{"caption":"DoorName","sortable":true,"dataIndex":"doorName","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null}
]}, {}]
}],
ncShopTime: ["wm.NotificationCall", {"operation":"toast"}, {}, {
input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":"\"Please Enter Valid Timing\"","targetProperty":"text"}, {}],
wire1: ["wm.Wire", {"expression":"4000","targetProperty":"duration"}, {}],
wire2: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}],
wire3: ["wm.Wire", {"expression":"\"Warning\"","targetProperty":"cssClasses"}, {}]
}]
}]
}],
loadingDialog1: ["wm.LoadingDialog", {}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"lvCustomer","targetProperty":"serviceVariableToTrack"}, {}],
wire1: ["wm.Wire", {"expression":undefined,"source":"layoutBox1","targetProperty":"widgetToCover"}, {}]
}]
}],
customerDialog: ["wm.DesignableDialog", {"buttonBarId":"buttonBar","containerWidgetId":"containerWidget","height":"90%","title":"Create /Update Customer","width":"80%"}, {}, {
containerWidget: ["wm.Container", {"_classes":{"domNode":["wmdialogcontainer","MainContent"]},"autoScroll":true,"height":"100%","horizontalAlign":"left","padding":"5","verticalAlign":"top","width":"100%"}, {}, {
customerLiveForm1: ["wm.LiveForm", {"alwaysPopulateEditors":true,"captionSize":"150px","fitToContentHeight":true,"height":"544px","horizontalAlign":"left","liveEditing":false,"margin":"4","verticalAlign":"top"}, {"onSuccess":"customerLivePanel1.popupLiveFormSuccess"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"customerDojoGrid.selectedItem","targetProperty":"dataSet"}, {}]
}],
nameEditor1: ["wm.Text", {"border":"0","caption":"Name","captionSize":"150px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"emptyString","formField":"name","height":"26px","required":true,"width":"100%"}, {}],
addressEditor1: ["wm.Text", {"border":"0","caption":"Address","captionSize":"150px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"emptyString","formField":"address","height":"26px","width":"100%"}, {}],
emailEditor1: ["wm.Text", {"border":"0","caption":"Email","captionSize":"150px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"emptyString","formField":"email","height":"26px","regExp":"^[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$","styles":{},"width":"100%"}, {}],
updatedDtEditor1: ["wm.DateTime", {"border":"0","caption":"UpdatedDt","captionSize":"150px","dateMode":"Date","desktopHeight":"26px","emptyValue":"zero","formField":"updatedDt","height":"26px","showing":false,"width":"100%"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":"new Date()","targetProperty":"defaultInsert"}, {}]
}]
}],
activeEditor1: ["wm.Checkbox", {"border":"0","caption":"Active","captionSize":"150px","defaultInsert":true,"desktopHeight":"26px","displayValue":true,"formField":"active","height":"26px","startChecked":true,"width":"100%"}, {}],
passwordEditor1: ["wm.Text", {"border":"0","caption":"Password","captionSize":"150px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"emptyString","formField":"password","height":"26px","styles":{},"width":"100%"}, {}],
lookup1: ["wm.Lookup", {"autoDataSet":false,"border":"0","caption":"Block","captionSize":"150px","dataType":"com.servicelivedb.data.Block","desktopHeight":"26px","displayField":"blockName","formField":"block","height":"26px","width":"100%"}, {"onchange":"lvDoors"}, {
binding: ["wm.Binding", {}, {}, {
dataFieldWire: ["wm.Wire", {"source":"lookup1.liveVariable","targetProperty":"dataSet"}, {}],
wire: ["wm.Wire", {"expression":undefined,"source":"lvBlocks","targetProperty":"dataSet"}, {}]
}]
}],
lookup2: ["wm.Lookup", {"autoDataSet":false,"border":"0","caption":"Door","captionSize":"150px","dataType":"com.servicelivedb.data.Door","desktopHeight":"26px","displayField":"doorName","formField":"door","height":"26px","width":"100%"}, {}, {
binding: ["wm.Binding", {}, {}, {
dataFieldWire: ["wm.Wire", {"source":"lookup2.liveVariable","targetProperty":"dataSet"}, {}],
wire: ["wm.Wire", {"expression":undefined,"source":"lvDoors","targetProperty":"dataSet"}, {}]
}]
}],
primaryPhoneEditor1: ["wm.Text", {"border":"0","caption":"PrimaryPhone","captionSize":"150px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"emptyString","formField":"primaryPhone","height":"26px","regExp":"\\d{10}$","required":true,"styles":{},"width":"100%"}, {}],
secondaryPhoneEditor1: ["wm.Text", {"border":"0","caption":"SecondaryPhone","captionSize":"150px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"emptyString","formField":"secondaryPhone","height":"26px","regExp":"\\d{10}$","styles":{},"width":"100%"}, {}],
secondaryPhoneEditor2: ["wm.Text", {"border":"0","caption":"Type","captionSize":"150px","changeOnKey":true,"defaultInsert":"VENDOR","desktopHeight":"26px","emptyValue":"emptyString","formField":"type","height":"26px","showing":false,"width":"100%"}, {}],
alternateContactEditor1: ["wm.Text", {"border":"0","caption":"AlternateContact","captionSize":"150px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"emptyString","formField":"alternateContact","height":"26px","width":"100%"}, {}],
minimumOrderAmt: ["wm.Number", {"border":"0","caption":"Minimum Order Amount","captionSize":"150px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"zero","formField":"min_order_amount","height":"26px","singleLine":false,"width":"100%"}, {}],
checkbox1: ["wm.Checkbox", {"border":"0","caption":"Pto","captionSize":"150px","desktopHeight":"26px","displayValue":false,"formField":"pto","height":"26px"}, {}],
alternateContactEditor3: ["wm.LargeTextArea", {"border":"0","caption":"Shop Close Message","captionAlign":"right","captionPosition":"left","captionSize":"150px","changeOnKey":true,"desktopHeight":"39px","emptyValue":"emptyString","formField":"ptoMessage","height":"39px","width":"100%"}, {}],
vendorMessage: ["wm.LargeTextArea", {"border":"0","caption":"Order Delivery Message","captionAlign":"right","captionPosition":"left","captionSize":"150px","changeOnKey":true,"desktopHeight":"39px","emptyValue":"emptyString","formField":"vendor_msg","height":"39px","width":"100%"}, {}],
updatedByEditor1: ["wm.Text", {"border":"0","caption":"UpdatedBy","captionSize":"150px","changeOnKey":true,"defaultInsert":"ADMIN","desktopHeight":"26px","emptyValue":"emptyString","formField":"updatedBy","height":"26px","showing":false,"width":"100%"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"[main].svUserName.dataValue","targetProperty":"dataValue"}, {}]
}]
}],
panel9: ["wm.Panel", {"height":"48px","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
shopTimeTxt: ["wm.LargeTextArea", {"border":"0","caption":"Shop Timing","captionAlign":"right","captionPosition":"left","captionSize":"150px","changeOnKey":true,"desktopHeight":"39px","emptyValue":"emptyString","formField":"shop_time","height":"39px","width":"100%"}, {}],
button2: ["wm.Button", {"border":"1","caption":"Clear Shop Time","width":"154.5px"}, {"onclick":"customerUpdateButtonClick"}]
}],
panel4: ["wm.Panel", {"height":"48px","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
panel3: ["wm.Panel", {"height":"32px","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"409px"}, {}, {
label2: ["wm.Label", {"caption":"Daily Timing 1             --From","height":"30px","padding":"4","width":"142px"}, {}],
optionTimeHour: ["wm.SelectMenu", {"border":"0","caption":"Hr","captionSize":"20px","dataField":"dataValue","dataValue":undefined,"desktopHeight":"26px","displayField":"dataValue","displayValue":"","height":"26px","options":"1,2,3,4,5,6,7,8,9,10,11,12","width":"80px"}, {}],
optionTimeMin: ["wm.SelectMenu", {"border":"0","caption":"Minute","captionSize":"50px","dataField":"dataValue","dataValue":undefined,"desktopHeight":"26px","displayField":"dataValue","displayValue":"","height":"26px","options":"00,15,30,45","width":"112px"}, {}],
option: ["wm.SelectMenu", {"border":"0","caption":"selectMenu1","captionSize":"0px","dataField":"dataValue","dataValue":undefined,"desktopHeight":"26px","displayField":"dataValue","displayValue":"","height":"26px","options":"AM,PM","width":"54px"}, {}]
}],
label1: ["wm.Label", {"caption":"TO","padding":"4","singleLine":false,"width":"40px"}, {}],
panel5: ["wm.Panel", {"height":"32px","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"253px"}, {}, {
optionTimeHour1: ["wm.SelectMenu", {"border":"0","caption":"Hr","captionSize":"20px","dataField":"dataValue","dataValue":undefined,"desktopHeight":"26px","displayField":"dataValue","displayValue":"","height":"26px","options":"1,2,3,4,5,6,7,8,9,10,11,12","width":"80px"}, {}],
optionTimeMin1: ["wm.SelectMenu", {"border":"0","caption":"Minute","captionSize":"50px","dataField":"dataValue","dataValue":undefined,"desktopHeight":"26px","displayField":"dataValue","displayValue":"","height":"26px","options":"00,15,30,45","width":"112px"}, {}],
option1: ["wm.SelectMenu", {"border":"0","caption":"selectMenu1","captionSize":"0px","dataField":"dataValue","dataValue":undefined,"desktopHeight":"26px","displayField":"dataValue","displayValue":"","height":"26px","options":"AM,PM","width":"54px"}, {}]
}]
}],
panel6: ["wm.Panel", {"height":"48px","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
panel7: ["wm.Panel", {"height":"32px","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"409px"}, {}, {
label3: ["wm.Label", {"caption":"Daily Timing 2      --- From","height":"30px","padding":"4","width":"142px"}, {}],
optionTimeHour2: ["wm.SelectMenu", {"border":"0","caption":"Hr","captionSize":"20px","dataField":"dataValue","dataValue":undefined,"desktopHeight":"26px","displayField":"dataValue","displayValue":"","height":"26px","options":"1,2,3,4,5,6,7,8,9,10,11,12","width":"80px"}, {}],
optionTimeMin2: ["wm.SelectMenu", {"border":"0","caption":"Minute","captionSize":"50px","dataField":"dataValue","dataValue":undefined,"desktopHeight":"26px","displayField":"dataValue","displayValue":"","height":"26px","options":"00,15,30,45","width":"112px"}, {}],
option2: ["wm.SelectMenu", {"border":"0","caption":"selectMenu1","captionSize":"0px","dataField":"dataValue","dataValue":undefined,"desktopHeight":"26px","displayField":"dataValue","displayValue":"","height":"26px","options":"AM,PM","width":"54px"}, {}]
}],
label4: ["wm.Label", {"caption":"TO","padding":"4","singleLine":false,"width":"40px"}, {}],
panel8: ["wm.Panel", {"height":"32px","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"253px"}, {}, {
optionTimeHour3: ["wm.SelectMenu", {"border":"0","caption":"Hr","captionSize":"20px","dataField":"dataValue","dataValue":undefined,"desktopHeight":"26px","displayField":"dataValue","displayValue":"","height":"26px","options":"1,2,3,4,5,6,7,8,9,10,11,12","width":"80px"}, {}],
optionTimeMin3: ["wm.SelectMenu", {"border":"0","caption":"Minute","captionSize":"50px","dataField":"dataValue","dataValue":undefined,"desktopHeight":"26px","displayField":"dataValue","displayValue":"","height":"26px","options":"00,15,30,45","width":"112px"}, {}],
option3: ["wm.SelectMenu", {"border":"0","caption":"selectMenu1","captionSize":"0px","dataField":"dataValue","dataValue":undefined,"desktopHeight":"26px","displayField":"dataValue","displayValue":"","height":"26px","options":"AM,PM","width":"54px"}, {}]
}]
}]
}]
}],
buttonBar: ["wm.Panel", {"_classes":{"domNode":["dialogfooter"]},"border":"1,0,0,0","desktopHeight":"32px","enableTouchHeight":true,"height":"32px","horizontalAlign":"right","layoutKind":"left-to-right","mobileHeight":"40px","verticalAlign":"top","width":"100%"}, {}, {
customerSaveButton: ["wm.Button", {"border":"1","caption":"Save","height":"100%"}, {"onclick":"customerSaveButtonClick"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"source":"customerLiveForm1.invalid","targetId":null,"targetProperty":"disabled"}, {}]
}]
}],
customerCancelButton: ["wm.Button", {"border":"1","caption":"Cancel","height":"100%"}, {"onclick":"customerDialog.hide","onclick1":"customerLiveForm1.cancelEdit"}]
}]
}],
layoutBox1: ["wm.Layout", {"horizontalAlign":"left","verticalAlign":"top"}, {}, {
panel1: ["wm.Panel", {"desktopHeight":"37px","enableTouchHeight":true,"height":"37px","horizontalAlign":"center","layoutKind":"left-to-right","mobileHeight":"40px","verticalAlign":"top","width":"100%"}, {}, {
lookupProject: ["wm.Lookup", {"border":"0","caption":"Filter User by Project","captionSize":"180px","dataType":"com.servicelivedb.data.Project","dataValue":undefined,"desktopHeight":"30px","displayField":"projectName","displayValue":"","height":"30px","width":"500px"}, {"onchange":"lvCustomerLiveVar","onchange1":"lvBlocks"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"lvProjects","targetProperty":"dataSet"}, {}]
}]
}],
button1: ["wm.Button", {"border":"1","caption":"Refresh Data","width":"150px"}, {"onclick":"lvProjects"}]
}],
panel2: ["wm.Panel", {"autoScroll":true,"height":"100%","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
customerLivePanel1: ["wm.LivePanel", {"autoScroll":false,"horizontalAlign":"left","verticalAlign":"top"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"source":"customerDialog","targetId":null,"targetProperty":"dialog"}, {}],
wire1: ["wm.Wire", {"source":"customerLiveForm1","targetId":null,"targetProperty":"liveForm"}, {}],
wire2: ["wm.Wire", {"source":"customerDojoGrid","targetId":null,"targetProperty":"dataGrid"}, {}],
wire3: ["wm.Wire", {"source":"customerSaveButton","targetId":null,"targetProperty":"saveButton"}, {}]
}],
customerDojoGrid: ["wm.DojoGrid", {"columns":[
{"show":false,"field":"customerId","title":"CustomerId","width":"80px","align":"right","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":true,"field":"name","title":"Name","width":"100px","align":"left","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":true,"field":"address","title":"Address","width":"150px","align":"left","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":true,"field":"email","title":"Email","width":"150px","align":"left","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":true,"field":"active","title":"Active","width":"50px","align":"left","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":true,"field":"password","title":"Password","width":"84px","align":"left","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":false,"field":"username","title":"Username","width":"100%","align":"left","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":false,"field":"block","title":"Block","width":"50px","align":"left","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":false,"field":"door","title":"Door","width":"50px","align":"left","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":true,"field":"primaryPhone","title":"PrimaryPhone","width":"121px","align":"left","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":true,"field":"secondaryPhone","title":"SecondaryPhone","width":"121px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"type","title":"Type","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"alternateContact","title":"AlternateContact","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"PHONE COLUMN","title":"-","width":"31px","align":"left","expression":"\"<div class='MobileRowTitle'>\" +\n\"Name: \" + ${name} +\n\"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"Address: \" + ${address}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"Email: \" + ${email}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"Active: \" + ${active}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"Password: \" + ${password}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"PrimaryPhone: \" + ${primaryPhone}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"SecondaryPhone: \" + ${secondaryPhone}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"Vendor msg: \" + ${vendor_msg}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"Pto: \" + ${pto}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"Shop Close Message: \" + ${ptoMessage}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"UpdatedBy: \" + ${updatedBy}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"UpdatedDt: \" + ${wm.runtimeId}.formatCell(\"updatedDt\", ${updatedDt}, ${this}, ${wm.rowId})\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"Min order amount: \" + ${min_order_amount}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"Shop time: \" + ${shop_time}\n + \"</div>\"\n\n","mobileColumn":true},
{"show":true,"field":"vendor_msg","title":"Vendor msg","width":"100px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"door.doorName","title":"Door.doorName","width":"28px","align":"left","formatFunc":"","mobileColumn":false},
{"show":true,"field":"pto","title":"Pto","width":"118px","align":"left","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":true,"field":"ptoMessage","title":"Shop Close Message","width":"150px","align":"left","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":true,"field":"updatedBy","title":"UpdatedBy","width":"104px","align":"left","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":true,"field":"updatedDt","title":"UpdatedDt","width":"150px","align":"left","formatFunc":"wm_date_formatter","formatProps":{"formatLength":"medium","dateType":"date and time"},"editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":false,"field":"project.projectId","title":"Project.projectId","width":"80px","align":"right","formatFunc":"","mobileColumn":false},
{"show":false,"field":"project.projectName","title":"Project.projectName","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"project.address","title":"Project.address","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"project.active","title":"Project.active","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"project.primaryPhone","title":"Project.primaryPhone","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"project.secondaryPhone","title":"Project.secondaryPhone","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"project.email","title":"Project.email","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"project.website","title":"Project.website","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"project.description","title":"Project.description","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"block.blockId","title":"Block.blockId","width":"80px","align":"right","formatFunc":"","mobileColumn":false},
{"show":false,"field":"block.blockName","title":"Block.blockName","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"door.doorId","title":"Door.doorId","width":"80px","align":"right","formatFunc":"","mobileColumn":false},
{"show":true,"field":"min_order_amount","title":"Min order amount","width":"140px","align":"right","formatFunc":"","mobileColumn":false},
{"show":true,"field":"shop_time","title":"Shop time","width":"150px","align":"left","formatFunc":"","mobileColumn":false}
],"dsType":"com.servicelivedb.data.Customer","height":"100%","localizationStructure":{},"minDesktopHeight":60}, {"onCellDblClick":"customerLivePanel1.popupLivePanelEdit"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"lvCustomerLiveVar","targetProperty":"dataSet"}, {}]
}]
}],
customerGridButtonPanel: ["wm.Panel", {"desktopHeight":"32px","enableTouchHeight":true,"height":"32px","horizontalAlign":"right","layoutKind":"left-to-right","mobileHeight":"40px","verticalAlign":"top","width":"100%"}, {}, {
customerUpdateButton: ["wm.Button", {"border":"1","caption":"Update"}, {"onclick":"customerUpdateButtonClick","onclick1":"customerLivePanel1.popupLivePanelEdit"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"source":"customerDojoGrid.emptySelection","targetId":null,"targetProperty":"disabled"}, {}]
}]
}]
}]
}]
}]
}]
};

DVendorDetailsPg.prototype._cssText = '';
DVendorDetailsPg.prototype._htmlText = '';